package com.auto.survey.activity.adjustment.adjustment_high.entity

import androidx.room.Embedded
import androidx.room.Relation

data class ProjectWithObservations(
    @Embedded val project: Project,

    @Relation(
        parentColumn = "id",
        entityColumn = "projectId"
    )
    val observations: List<Observation>
) {
    init {
        project.calculateObservationCount(observations)
    }
}